package com.hyh.prize.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lww.springcloudapi.entity.TabGgcardEncash;
import com.lww.springcloudapi.entity.parent.ParentEntity;
import com.lww.springcloudapi.pojo.TabHallUsermessage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 刮刮卡领取日志表
 * </p>
 *
 * @author SHEN
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式编程
@ApiModel(value = "TabGgcardObtain对象", description = "刮刮卡领取日志表")
public class TabGgcardObtain extends ParentEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户编号")
    @TableField("SUBSCRBID")
    private String subscrbid;

    @ApiModelProperty(value = "地区编码")
    @TableField("AREAID")
    private String areaid;

    @ApiModelProperty(value = "业务类型")
    @TableField("SVCID")
    private String svcid;

    @ApiModelProperty(value = "参与方式(tab_code表codetype=’ SrvFun)")
    @TableField("JOINMODE")
    private String joinmode;

    @ApiModelProperty(value = "参与条件")
    @TableField("JOINPARA")
    private String joinpara;

    @ApiModelProperty(value = "领取数量")
    @TableField("OBTAINNUM")
    private Integer obtainnum;

    @ApiModelProperty(value = "领取状态（00：未领取；10：已领取）")
    @TableField("OBTAINSTATE")
    private String obtainstate;

    @ApiModelProperty(value = "操作员")
    @TableField("OPTRID")
    private String optrid;

    @ApiModelProperty(value = "受理点")
    @TableField("ACPTSITEID")
    private String acptsiteid;

    @ApiModelProperty(value = "操作时间")
    @TableField("OPTRDATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    // @JSONField(format = "yyyy-MM-dd")
    private Date optrdate;

    @ApiModelProperty(value = "流水号")
    @TableField("TRANSN")
    private String transn;

    @ApiModelProperty(value = "备注")
    @TableField("REMARKS")
    private String remarks;

    //用户姓名
    @TableField(exist = false)
    private String name;

    //地区名称
    @TableField(exist = false)
    private String dName;

    //业务类型
    @TableField(exist = false)
    private String yType;

    //参与方式
    @TableField(exist = false)
    private String cShow;

    //领取状态（00：未领去，10：已领取）
    @TableField(exist = false)
    private String stateName;

    //营业厅名称
    @TableField(exist = false)
    private String yName;

    //礼品id
    @TableField(exist = false)
    private String lpid;


    //刮刮卡id
    @TableField(exist = false)
    private String ggkid;

}

